package zj.xinxin.business.business.articale.converter;

import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;
import zj.xinxin.api.moudle.article.dto.TagDto;
import zj.xinxin.api.moudle.article.entity.TagEntity;
import zj.xinxin.api.moudle.article.vo.TagVo;

/**
 * @author junzhou
 * @date 2022/4/13 11:01
 * @since 1.8
 */
@Mapper(componentModel = "spring")
public interface TagConverter {

    TagConverter INSTANCE = Mappers.getMapper(TagConverter.class);

    TagEntity toEntity(TagVo tag);

    TagDto toDto(TagEntity entity);
}
